//
//  HNHandleCourseThreeGoodView.m
//  优学荟管理系统
//
//  Created by edz on 2018/1/10.
//  Copyright © 2018年 星道三好. All rights reserved.
//

#import "HNHandleCourseThreeGoodView.h"

@implementation HNHandleCourseThreeGoodView {
    
    __weak IBOutlet UILabel *_title;
    __weak IBOutlet UIButton *_select;
}

- (void)setModel:(HNCourseListChartsModel *)model {
    
    _model = model;
    
    _title.text = model.content;
    
    _select.selected = model.selected;
}

- (IBAction)select:(UIButton *)sender {
    
    self.model.selected = sender.selected = !sender.selected;
}

@end
